package com.whfc.hdc.params;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author qzexing
 * @version 1.0
 * @date 2021-04-06 17:21
 */
@Data
public class HdcOpenApiTokenParam implements Serializable {

    /**
     * appKey
     */
    private String appKey;

    /**
     * 时间戳
     */
    @NotNull
    private Long timestamp;

    /**
     * 随机字符串
     */
    @NotEmpty
    @Size(max = 16)
    private String randomStr;

    /**
     * 签名
     */
    @NotEmpty
    private String sign;

    /**
     * 设备唯一编码
     */
    @NotEmpty
    private String deviceCode;

}
